<!--
Date: 2025-08-13
Copyright (c) 2025 Industrial Software Feature Database
-->
<template>
  <div>
    <el-table :data="tableData" v-bind="tableProps" v-on="tableEvents">
      <el-table-column v-for="item in tableHeaders" :key="item.columnProps.prop" v-bind="item.columnProps">
        <template v-if="item.showColumnSlot" #default="scope">
          <slot :name="item.columnSlotName" :data="scope"></slot>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script setup>
const { tableData, tableHeaders, tableProps } = defineProps({
  tableData: Array,
  tableHeaders: Array,
  tableProps: Object,
  tableEvents: Object
});
</script>

<style lang="scss" scoped></style>
